home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 13216 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: skivs.ski.org!usenet
  2. From: gt@ns.oon.or.jp (Gemini Thunder)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Storing C Functions In An Array?
  5. Date: Fri, 05 Apr 1996 07:59:51 GMT
  6. Organization: Smith-Kettlewell Eye Research Institute
  7. Message-ID: <4k2jve$ejc@skivs.ski.org>
  8. References: <4jc1u7$5e9@infa.central.susx.ac.uk> <4jerhn$sc8@oege.htsa.hva.nl> <4jj5d0$me8@news.xs4all.nl> <4k12qc$epc@oege.htsa.hva.nl>
  9. NNTP-Posting-Host: oonserv.oon.or.jp
  10. X-Newsreader: Forte Free Agent 1.0.82
  11.  
  12. ferdinan@htsa.htsa.hva.nl (Ferdinand de Boevere) wrote:
  13.  
  14. >In article <4jj5d0$me8@news.xs4all.nl>, Falstaff <falstaff@xs4all.nl> wrote:
  15. >>ferdinan@htsa.htsa.hva.nl (Ferdinand de Boevere) writes:
  16.  
  17. >>I remember one entry in an early Obfuscated C Programming Contest.
  18. >>It declared main something like this:
  19.  
  20. >>int main[]=
  21. >>{  5236,736,8,-547,'f', 
  22.  
  23. >>and it actually ran on PDPs and VAXen.  So it *can* be done :-)
  24.  
  25. >No, it can't be done !
  26. >This was probably nothing but declaring an array called main
  27. >inside another function (e.g. main).
  28.  
  29. >Ferdinand
  30.  
  31. FWIW, the program in question is mullender.c, the 1984 winning entry,
  32. It is machine dependent code (for the vax-11 or pdp-11 as was stated).
  33. You can get all the back entries for the ObC contest somewhere online,
  34. but I forget where. 
  35.   
  36.  
  37.